//
//  HSYBillRecordModel.m
//  HSY
//
//  Created by 陈浩 on 2017/4/7.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYBillRecordModel.h"

@implementation HSYBillRecordModel

- (NSString *)channelDetailString{
    if ([self.tradeType integerValue] == 1) {
        return [NSString stringWithFormat:@"收款 — %@",self.channel];
    }else if ([self.tradeType integerValue] == 2){
        return [NSString stringWithFormat:@"提现 — %@",self.channel];
    }
    
    return nil;
}

- (NSString *)amountDetailString{
    if ([self.tradeType integerValue] == 1) {
        return [NSString stringWithFormat:@"+%@元",self.amount];
    }else if ([self.tradeType integerValue] == 2){
        return [NSString stringWithFormat:@"-%@元",self.amount];
    }
    
    return nil;
}

@end
